package com.graduation_design.common.exception;

public class HubException extends RuntimeException{
    // 自定义异常
    private String msg;
    private int code = 500;

    public HubException(String msg) {
        super(msg);
        this.msg = msg;
    }

    public HubException(String msg, int code) {
        super(msg);
        this.msg = msg;
        this.code = code;
    }
}
